import { APIGET, APIPOST, APIPUT, APIDELETE } from '../bgApiToken';

//流程实例查询
export const allInstance = (param) => APIPOST(`/flow/allInstance?current=${param.current}&size=${param.size}`);

//用户当前任务
export const findUserTask = (param) => APIPOST(`/flow/findUserTask?current=${param.current}&size=${param.size}&formKey=purtc`);
//用户当前任务详情
export const findTaskInfo = (param) => APIPOST(`/flow/findTaskInfo?taskID=${param.taskID}`);
//完成当前任务
export const completeTask = (param) => APIPOST(`/flow/completeTask?remark=${param.remark}&taskId=${param.taskID}`);
//挂起申请流程
export const hangup = (param) => APIPOST(`/flow/hangup?processInstanceId=${param}`);
//取消申请流程
export const activi = (param) => APIPOST(`/flow/activi?processInstanceId=${param}`);
///撤销挂起
export const shutDown = (param) => APIPOST(`/flow/shutDown?processInstanceId=${param.processInstanceId}&reason=${param.reason}`);
